
package com.yitongmao.util;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;

/**
 * 类说明： 栏目封装对象
 *
 * @author Liucd
 * @version 1.0
 * @date Dec 9, 2010 5:30:51 AM
 */
public class Column implements Serializable {

    /**
     * 101：新闻频道
     */
    public final static int TYPE_CHANNEL_NEWS_PAGE = 101;
    /**
     * 102：数字报频道
     */
    public final static int TYPE_CHANNEL_DIGITAL_NEWSPAPER = 102;
    /**
     * 103：便民服务频道
     */
    public final static int TYPE_CHANNEL_LOCAL_SERVICE = 103;
    /**
     * 104：民生互动频道
     */
    public final static int TYPE_CHANNEL_INTERACTION = 104;
    /**
     * 105：积分商城频道
     */
    public final static int TYPE_CHANNEL_POINT_STORE = 105;
    /**
     * 106：外链频道
     */
    public final static int TYPE_CHANNEL_WEB = 106;

    /**
     * 107：话题社交频道；
     */
    public final static int TYPE_CHANNEL_TPOIC_COMMUNICATE = 107;
    /**
     * 107：订阅频道；
     */
    public final static int TYPE_CHANNEL_USER_CHOISE = 107;

    /**
     * 108:政情频道
     */
    public final static int TYPE_CHANNEL_PS = 108;
    /**
     * 109:爆料频道
     */
    public final static int TYPE_CHANNEL_DISCOLSE = 109;

    /**
     * 201：普通栏目
     */
    public final static int TYPE_COLUMN_NEWS = 201;
    /**
     * 202：图片栏目
     */
    public final static int TYPE_COLUMN_IMAGE = 202;
    /**
     * 203：视频栏目
     */
    public final static int TYPE_COLUMN_VIDEO = 203;
    /**
     * 204：推荐栏目
     */
    public final static int TYPE_COLUMN_RECOMMEND = 204;
    /**
     * 205：地方栏目
     */
    public final static int TYPE_COLUMN_LOCAL = 205;
    /**
     * 206：外链栏目
     */
    public final static int TYPE_COLUMN_WEB = 206;

    /**
     * 207：热门栏目；
     */
    public final static int TYPE_COLUMN_HOT = 207;
    /**
     * 208：论坛栏目；
     */
    public final static int TYPE_COLUMN_FORUM = 208;
    /**
     * 209:生活栏目
     */
    public final static int TYPE_COLUMN_LIFE = 209;
    /**
     * 210:新华-自媒体栏目
     */
//    public final static int TYPE_COLUMN_SELFMEDIA = 210;
    /**
     * 211:新华-专题栏目类型
     */
    public final static int TYPE_COLUMN_SPECIAL = 211;
    /**
     * 212:数据栏目类型
     */
    public final static int TYPE_COLUMN_DATA = 212;
    /**
     * 5000：快点定制栏目；
     */
    public final static int TYPE_COLUMN_BOTTOM_CUSTOMERIZE = 5000;
    /**
     * 5001
     */
    public final static int TYPE_COLUMN_BOTTOM_SEE = 5001;

    /**
     * 5002
     */
    public final static int TYPE_COLUMN_BOTTOM_FORUM = 5002;

    /**
     * 5002
     */
    public final static int TYPE_COLUMN_BOTTOM_MY = 5003;

    /**
     * 栏目数据类型，普通
     */
    public final static int TYPE_DATA_NOMAL = 0;
    /**
     * 栏目数据类型，最新
     */
    public final static int TYPE_DATA_NEWEST = 501;
    /**
     * 栏目数据类型，最新
     */
    public final static int TYPE_DATA_RECOMMEND = 502;

    public final static int POS_TYPE_YZT = 4000;

    public final static int POS_TYPE_RMQ = 4001;

    public final static int POS_TYPE_CHANNEL_LEFT = 4002;

    public final static int POS_TYPE_CHANNEL_BOTTOM = 4003;

    private static final long serialVersionUID = -3563794809210853295L;
    public int columnId;
    private String columnName;
    private String sortLetters;// 栏目名拼音首字母
    private long columnVersion = 0;
    // private int columnShow = 0;
    private String columnImgUrl = "";
    private String highColumnImgUrl = "";
    private String columnValue;
    private String CityCode;
    private boolean isClicked;
    private boolean showcolumn;
    private String fullNodeName;
    private List<HashMap<String, String>> articals;
    private boolean isChosenColumn;




    public int topCount;

    public String phoneIcon;

    public String padIcon;

    public int orderId;

    public String keyword;

    public String description;

    public String linkUrl;

    public boolean isForbidden;

    public String columnType;

    public String columnStyle;


    public void setPhoneIcon(String phoneIcon){
        this.phoneIcon = phoneIcon;
    }

    public String getPhoneIcon(){
        return this.phoneIcon;
    }

    public void setPadIcon(String padIcon){
        this.padIcon = padIcon;
    }

    public String getPadIcon(){
        return this.padIcon;
    }

    public boolean isForbidden() {
        return isForbidden;
    }

    public void setForbidden(boolean isForbidden) {
        this.isForbidden = isForbidden;
    }

    public boolean isShowcolumn() {
        return showcolumn;
    }

    public void setShowcolumn(boolean showcolumn) {
        this.showcolumn = showcolumn;
    }

    public boolean isChosencolumn() {
        return isChosenColumn;
    }

    public void setChosenColumn(boolean isChosenColumn) {
        this.isChosenColumn = isChosenColumn;
    }

    public List<HashMap<String, String>> getArticals() {
        return articals;
    }

    public void setArticals(List<HashMap<String, String>> articals) {
        this.articals = articals;
    }

    public boolean isClicked() {
        return isClicked;
    }

    public void setClicked(boolean isClicked) {
        this.isClicked = isClicked;
    }

    public String getSortLetters() {
        return sortLetters;
    }

    public void setSortLetters(String sortLetters) {
        this.sortLetters = sortLetters;
    }

    public String getCityCode() {
        return CityCode;
    }

    public void setCityCode(String cityCode) {
        CityCode = cityCode;
    }


    public String getColumnValue() {
        return columnValue;
    }

    public void setColumnValue(String columnValue) {
        this.columnValue = columnValue;
    }

    public Column getColumn() {
        return this;
    }

    public String getHighColumnImgUrl() {
        return highColumnImgUrl;
    }

    public void setHighColumnImgUrl(String highColumnImgUrl) {
        this.highColumnImgUrl = highColumnImgUrl;
    }

//    private int columnTopNum = 0;

    public int getColumnTopNum() {
        return topCount;
    }

    public void setColumnTopNum(int columnTopNum) {
        this.topCount = columnTopNum;
    }

    // public int getColumnShow() {
    // return columnShow;
    // }
    // public void setColumnShow(int columnShow) {
    // this.columnShow = columnShow;
    // }
    public int getColumnId() {
        return columnId;
    }

    public void setColumnId(int columnId) {
        this.columnId = columnId;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public long getColumnVersion() {
        return columnVersion;
    }

    public void setColumnVersion(long columnVersion) {
        this.columnVersion = columnVersion;
    }

    public String getColumnImgUrl() {
        return columnImgUrl;
    }

    public void setColumnImgUrl(String columnImgUrl) {
        this.columnImgUrl = columnImgUrl;
    }

    @Override
    public String toString() {
        return "Column [columnId=" + columnId + ", columnName=" + columnName
                + ", columnVersion=" + columnVersion + ", columnImgUrl="
                + columnImgUrl + ", highColumnImgUrl=" + highColumnImgUrl + ", columnTopNum="
                + topCount + ", columnType=" + columnType + ",columnStyle=" + columnStyle
                + ", columnValue=" + columnValue + ",linkUrl= " + linkUrl + ", showcolumn="
                + showcolumn + "]";
    }

    public String getFullNodeName() {
        String result = null;
        if (fullNodeName == null) {
            result = columnName;
        } else {
            result = fullNodeName.replaceAll("->", ",");
        }
        return result;
        // return fullNodeName;
    }

    public void setFullNodeName(String fullNodeName) {
        this.fullNodeName = fullNodeName;
    }

    @Override
    public boolean equals(Object o) {
        if (o instanceof Column) {
            Column column = (Column) o;
            return this.columnId == column.columnId;
        }
        return super.equals(o);
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getLinkUrl() {
        return linkUrl;
    }

    public void setLinkUrl(String linkUrl) {
        this.linkUrl = linkUrl;
    }

    public String getColumnType() {
        return columnType;
    }

    public void setColumnType(String columnType) {
        this.columnType = columnType;
    }

    public String getColumnStyle() {
        return columnStyle;
    }

    public void setColumnStyle(String columnStyle) {
        this.columnStyle = columnStyle;
    }

    public boolean isChosenColumn() {
        return isChosenColumn;
    }

    public int getTopCount() {
        return topCount;
    }

    public void setTopCount(int topCount) {
        this.topCount = topCount;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }
}
